home *** CD-ROM | disk | FTP | other *** search
/ Graphics & Sound Program…ng Techniques for the Mac / Graphics and Sound Programming Techniques for the Mac.iso / M&T Graphics & Sound Examples / Symantec Versions / C09 App-QuickTime / P01 Film Edit / AppleMenu.c next >
Encoding:
Text File  |  1995-08-05  |  920 b   |  38 lines  |  [TEXT/KAHL]

  1. //____________________________________________________________
  2. //    AppleMenu.c
  3. //
  4. //    Copyright © Dan Parks Sydow, 1995
  5. //    From the book:
  6. //    "Graphics and Sound Programming Techniques for the Mac",
  7. //    M&T Books, 1995
  8.  
  9.  
  10. //____________________________________________________________
  11.  
  12. #include "Defines.h" 
  13. #include "DataTypes.h"
  14. #include "Globals.h"
  15. #include "AppleMenu.h"
  16.  
  17.  
  18. //____________________________________________________________
  19.  
  20. void  HandleAppleMenuAboutItem( void )
  21. {
  22.    SysBeep( 1 );
  23. }
  24.  
  25.  
  26. //____________________________________________________________
  27.  
  28. void  HandleAppleMenuDefaultItem( short theMenuItem )
  29. {
  30.    Str255      theAppleMenuItemName;     
  31.    short       theAppleMenuItemNumber;
  32.    MenuHandle  theAppleMenu;
  33.    
  34.    theAppleMenu = GetMHandle( mApple );   
  35.    GetItem( theAppleMenu, theMenuItem, theAppleMenuItemName );
  36.    theAppleMenuItemNumber = OpenDeskAcc( theAppleMenuItemName );
  37. }
  38.